package com.district.districtpicker.model;

import java.util.List;

public class ProvinceModel {
	
	private String name;
	private List<CityModel> cityList;
	
	public ProvinceModel() {
		
		super();
	}
	
	public ProvinceModel(String name, List<CityModel> cityList) {
		
		this.name = name;
		this.cityList = cityList;
	}
	
	public String getName() {
		
		return name;
	}
	
	public void setName(String name) {
		
		this.name = name;
	}
	
	public List<CityModel> getCityList() {
		
		return cityList;
	}
	
	public void setCityList(List<CityModel> cityList) {
		
		this.cityList = cityList;
	}
	
	public static class CityModel {
		
		private String name;
		private List<DistrictModel> districtList;
		
		public CityModel() {
			
			super();
		}
		
		public CityModel(String name, List<DistrictModel> districtList) {
			
			this.name = name;
			this.districtList = districtList;
		}
		
		public String getName() {
			
			return name;
		}
		
		public void setName(String name) {
			
			this.name = name;
		}
		
		public List<DistrictModel> getDistrictList() {
			
			return districtList;
		}
		
		public void setDistrictList(List<DistrictModel> districtList) {
			
			this.districtList = districtList;
		}
		
		public static class DistrictModel {
			
			private String name;
			private String zipcode;
			
			public DistrictModel() {
				
				super();
			}
			
			public DistrictModel(String name, String zipcode) {
				
				this.name = name;
				this.zipcode = zipcode;
			}
			
			public String getName() {
				
				return name;
			}
			
			public void setName(String name) {
				
				this.name = name;
			}
			
			public String getZipcode() {
				
				return zipcode;
			}
			
			public void setZipcode(String zipcode) {
				
				this.zipcode = zipcode;
			}
			
			@Override
			public String toString() {
				
				return "DistrictModel{" +
					"name='" + name + '\'' +
					", zipcode='" + zipcode + '\'' +
					'}';
			}
		}
		
		@Override
		public String toString() {
			
			return "CityModel{name='" + name + '\'' + ", districtList=" + districtList + '}';
		}
	}
	
	@Override
	public String toString() {
		
		return "ProvinceModel{" +
			"name='" + name + '\'' +
			", cityList=" + cityList +
			'}';
	}
}
